<?php
include_once 'BaseException.class.php';

/**
 * Thrown on error during database operations
 *
 */
class DbException extends BaseException {
    protected $query;
    protected $params;
    
    public function __construct($message = '', $code = 0, $query = '', $params = array(), $previous = null) {        
        parent::__construct($message, $code, $previous);        
        $this->query = $query;        
    }

    public function getQuery() {
        return $this->query;
    }
    public function getParams() {
        return $this->params;
    }

    
}

